package com.ruoyi.secondvitim.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.secondvitim.domain.QueSubmitFormDetail;
import com.ruoyi.secondvitim.mapper.QueSubmitFormDetailMapper;
import com.ruoyi.secondvitim.service.IQueSubmitFormDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 提交问卷详情Service业务层处理
 * 
 * @author alonso
 * @date 2022-02-21
 */
@Service
public class QueSubmitFormDetailServiceImpl implements IQueSubmitFormDetailService
{
    @Autowired
    private QueSubmitFormDetailMapper queSubmitFormDetailMapper;

    /**
     * 查询提交问卷详情
     *
     * @param id 提交问卷详情主键
     * @return 提交问卷详情
     */
    @Override
    public QueSubmitFormDetail selectQueSubmitFormDetailById(Long id)
    {
        return queSubmitFormDetailMapper.selectQueSubmitFormDetailById(id);
    }

    /**
     * 查询提交问卷详情列表
     * 
     * @param queSubmitFormDetail 提交问卷详情
     * @return 提交问卷详情
     */
    @Override
    public List<QueSubmitFormDetail> selectQueSubmitFormDetailList(QueSubmitFormDetail queSubmitFormDetail)
    {
        return queSubmitFormDetailMapper.selectQueSubmitFormDetailList(queSubmitFormDetail);
    }

    /**
     * 新增提交问卷详情
     * 
     * @param queSubmitFormDetail 提交问卷详情
     * @return 结果
     */
    @Override
    public int insertQueSubmitFormDetail(QueSubmitFormDetail queSubmitFormDetail)
    {
        return queSubmitFormDetailMapper.insertQueSubmitFormDetail(queSubmitFormDetail);
    }

    /**
     * 修改提交问卷详情
     * 
     * @param queSubmitFormDetail 提交问卷详情
     * @return 结果
     */
    @Override
    public int updateQueSubmitFormDetail(QueSubmitFormDetail queSubmitFormDetail)
    {
        return queSubmitFormDetailMapper.updateQueSubmitFormDetail(queSubmitFormDetail);
    }

    /**
     * 批量删除提交问卷详情
     * 
     * @param ids 需要删除的提交问卷详情主键
     * @return 结果
     */
    @Override
    public int deleteQueSubmitFormDetailByIds(String ids)
    {
        return queSubmitFormDetailMapper.deleteQueSubmitFormDetailByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除提交问卷详情信息
     * 
     * @param id 提交问卷详情主键
     * @return 结果
     */
    @Override
    public int deleteQueSubmitFormDetailById(Long id)
    {
        return queSubmitFormDetailMapper.deleteQueSubmitFormDetailById(id);
    }
}
